<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增AI模型训练分类')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-ClassifyService-add">
            <div class="form-group">
                <label class="col-sm-3 control-label">模型名称：</label>
                <div class="col-sm-8">
                    <input name="modelName" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">模型ID：</label>
                <div class="col-sm-8">
                    <input name="modelId" class="form-control" type="text">
                </div>
            </div>
            <!--&lt;!&ndash;            <div class="form-group">    &ndash;&gt;-->
            <!--&lt;!&ndash;                <label class="col-sm-3 control-label">训练名称：</label>&ndash;&gt;-->
            <!--&lt;!&ndash;                <div class="col-sm-8">&ndash;&gt;-->
            <!--&lt;!&ndash;                    <input name="classifyNo" class="form-control" type="text">&ndash;&gt;-->
            <!--&lt;!&ndash;                </div>&ndash;&gt;-->
            <!--&lt;!&ndash;            </div>&ndash;&gt;-->


            <div class="form-group">
                <label class="col-sm-3 control-label">模型类别：</label>
                <div class="col-sm-8">
                    <!--                <input name="modelCategory" class="form-control" type="text">-->
                    <select name="modelId">
                        <option value="" th:placeholder="--请选择模型类别--">--请选择模型类别--</option>
                        <option value="1">目标检测</option>
                        <option value="2">图片分类</option>

                    </select>
                </div>
            </div>

            <div class="form-group">
                <label class="col-sm-3 control-label">版本号：</label>
                <div class="col-sm-8">
                    <input name="version" class="form-control" type="text">
                </div>
            </div>

            <!--        <div class="form-group">-->
            <!--            <label class="col-sm-3 control-label">训练时间：</label>-->
            <!--            <div class="col-sm-8">-->
            <!--                <div class="input-group date">-->
            <!--                    <input name="classifyTime" class="form-control" placeholder="yyyy-MM-dd" type="text">-->
            <!--                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>-->
            <!--                </div>-->
            <!--            </div>-->
            <!--        </div>-->
            <!--        <div class="form-group">-->
            <!--            <label class="col-sm-3 control-label">训练准确度：</label>-->
            <!--            <div class="col-sm-8">-->
            <!--                <input name="trainingAccuracy" class="form-control" type="text">-->
            <!--            </div>-->
            <!--        </div>-->
            <!--        <div class="form-group">-->
            <!--            <label class="col-sm-3 control-label">训练进度：</label>-->
            <!--            <div class="col-sm-8">-->
            <!--                <input name="trainingProgress" class="form-control" type="text">-->
            <!--            </div>-->
            <!--        </div>-->
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "AI/ClassifyService"
        $("#form-ClassifyService-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-ClassifyService-add').serialize());
            }
        }

        $("input[name='classifyTime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>